/* module.exports = ({ env }) => ({
  defaultConnection: 'default',
  connections: {
    default: {
      connector: 'bookshelf',
      settings: {
        client: 'sqlite',
        filename: env('DATABASE_FILENAME', '.tmp/data.db'),
      },
      options: {
        useNullAsDefault: true,
      },
    },
  },
}); */




module.exports = ({ env }) => ({
  defaultConnection: 'default',
  connections: {
    default: {
      connector: 'bookshelf',
      settings: {
        client: 'mysql',
        // localhost strapi 和 数据库同属一个服务器
        // 119.23.18.239 cyk
        host: env('DATABASE_HOST', '119.23.18.239'),
        port: env.int('DATABASE_PORT', 3306),
        database: env('DATABASE_NAME', 'picc_test'),
        username: env('DATABASE_USERNAME', 'picctest'),
        password: env('DATABASE_PASSWORD', 'PIcc#test1'),
      },
      options: {
        useNullAsDefault: true,
      },
    },
  },
});